package com.accp.restaurant.dao;

import com.accp.restaurant.entity.Orders;
import org.springframework.data.jpa.repository.JpaRepository;

public interface OrdersDao extends JpaRepository<Orders,Long> {

//    @Query(value = "insert into orders(orderId,ordertime,orderState,dishesid,roomid,dishesnum,totalamount)values (?1,?2,?3,?4,?5,?6,?7)",nativeQuery = true)
//    public boolean add(String orderId,String ordertime,long orderState,long dishesid,long roomid,long dishesnum,double totalamount);


//    public List<Orders> findByOrderid(long orderid);
}
